package com.quick.calcu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.quick.calcu.entity.AnswerRecord;
import com.quick.calcu.entity.AnswerStats;
import com.quick.calcu.entity.ClassRecord;
import com.quick.calcu.entity.Student;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

public interface AnswerRecordService extends IService<AnswerRecord> {
    /**
     * 根据学生ID查询答题记录
     */
    List<AnswerRecord> getRecordsByStudentId(Long studentId);

    /**
     * 统计学生的总答题数和正确率
     */
    AnswerStats getStudentStats(Long studentId);

    /**
     * 获取学生最近一次的答题记录
     */
    List<AnswerRecord> getRecordByStudentId(long studentId);

    /**
     * 根据班级id获取班级的答题情况
     */
    ClassRecord getRecordByClassId(long classId,LocalDate time);

    List<AnswerRecord> getRecordByStudentIdAndTime(long studentId, LocalDate time);


}